Running image proxy with AWS Lambda
The requests don't work in the raw environment, so you need to put them in or rewrite them without using them.
$ pip3 install requests --target .
Returning binary data like the image from Lambda requires doing a lot of additional work.
What a pain in the ass...
2020/01/07 I just checked and it looked like I could do a pass-through.
---
This page is auto-translated from /nishio/AWS Lambdaで画像プロキシを動かす. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.